package com.freewater.springboot.demo.ioc.startuptracing;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.core.metrics.ApplicationStartup;

public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
        applicationContext.registerShutdownHook();
        final ApplicationStartup applicationStartup = applicationContext.getApplicationStartup();
        System.out.println(applicationStartup);
    }
}
